|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.interactions.core.support.Widget
org.eclipse.vtp.framework.interactions.voice.vxml.Action
org.eclipse.vtp.framework.interactions.voice.vxml.Goto
org.eclipse.vtp.framework.interactions.voice.vxml.Submit
public class Submit
The Submit class represents the <submit> VXML element.
This element acts exactly like the goto element, except that data can be
passed to the next document as well.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
Submit(java.lang.String targetURI)
Creates a new Submit object that will transfer execution to the given URI. |
|
Submit(java.lang.String targetURI,
java.lang.String[] names)
Creates a new Submit object that will transfer execution and pass the specified variable values to the given URI. |
|
| Method Summary | |
|---|---|
void |
addName(java.lang.String name)
Adds the variable name to the list of variables to pass to the next document. |
java.lang.String |
getEncodingType()
Returns the encoding type for the parameters. |
java.lang.String |
getMethod()
Returns the HTTP method to send data with. |
java.lang.String[] |
getNames()
Returns the list of variable names to pass to the next document. |
void |
removeName(java.lang.String name)
Removes the variable name from the list of variables to pass to the next document. |
void |
setEncodingType(java.lang.String encodingType)
Sets the encoding type for the parameters. |
void |
setMethod(java.lang.String method)
Sets the HTTP method to send data with. |
protected void |
writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
Write the attribute members of this action to the supplied set. |
void |
writeWidget(org.xml.sax.ContentHandler outputHandler)
Writes the content of this widget to an XML content handler. |
| Methods inherited from class org.eclipse.vtp.framework.interactions.voice.vxml.Goto |
|---|
getTargetURI, setTargetURI |
| Methods inherited from class org.eclipse.vtp.framework.interactions.core.support.Widget |
|---|
toString, writeAttribute, writeChildren, writeChildren, writeWidget, writeWidget |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Submit(java.lang.String targetURI)
targetURI - URI of the next document to process.
java.lang.IllegalArgumentException - If the supplied URI is empty.
java.lang.NullPointerException - If the supplied URI is null.
public Submit(java.lang.String targetURI,
java.lang.String[] names)
targetURI - URI of the next document to process.names - List of variables to pass to the next document.
java.lang.IllegalArgumentException - If the supplied URI is empty.
java.lang.IllegalArgumentException - If any of the supplied names are empty.
java.lang.NullPointerException - If the supplied URI is null.
java.lang.NullPointerException - If any of the supplied names are
null.| Method Detail |
|---|
public java.lang.String getMethod()
public java.lang.String getEncodingType()
public java.lang.String[] getNames()
public void setMethod(java.lang.String method)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
method - The HTTP method to send data with.
java.lang.IllegalArgumentException - If the supplied method is empty.
java.lang.NullPointerException - If the supplied method is null.
public void setEncodingType(java.lang.String encodingType)
throws java.lang.IllegalArgumentException
encodingType - The encoding type for the parameters
java.lang.IllegalArgumentException - If the supplied encoding type is empty.public void addName(java.lang.String name)
name - The variable name to add.
java.lang.IllegalArgumentException - If the supplied name is empty.
java.lang.NullPointerException - If the supplied name is null.public void removeName(java.lang.String name)
name - The variable name to remove.
java.lang.IllegalArgumentException - If the supplied name is empty.
java.lang.NullPointerException - If the supplied name is null.
public void writeWidget(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
Widget
writeWidget in class GotooutputHandler - The handler to write this widget to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of this widget fails.protected void writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
Goto
writeAttributes in class Gotoattributes - The attribute set to write to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||